﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Assignment2
{
    class Integer
    {
        private int value;

        public int Value
        {
            get { return this.value; }
            set { this.value = value; }
        }
        public Integer(int initValue)
        {
            value = initValue;
        }

        public static Integer operator ++(Integer value)
        {
            value.value++;
            return value;
        }

        public static Integer operator --(Integer value)
        {
            value.value--;
            return value;
        }

        public override string ToString()
        {
            return value.ToString();
        }
    }
}
